<?php
define('APP_PATH',			$_SERVER['DOCUMENT_ROOT']);
define("BAYES_PATH",APP_PATH."class/");
define("BAYES_CAT_PATH",APP_PATH."categories/");
define("FILTER_EXPRESSION", '/[^a-zA-Z\ *]/');
define("IGNOREWORDEQUALSORLESSTHEN", 2);
define("BASICPROBABILITY", 0.1);
spl_autoload_extensions('.class.php');

function bautoload($name){
	if ( file_exists(  BAYES_PATH. strtolower($name).".class.php") ){
		require_once BAYES_PATH.strtolower($name).".class.php";
		return;
	}
}
spl_autoload_register('bautoload');